import request from '@/utils/request'

// 查询营销企划书信息列表
export function listProposal(query) {
  return request({
    url: '/bpm/proposal/list',
    method: 'get',
    params: query
  })
}

// 查询营销企划书信息详细
export function getProposal(marketingProposalId) {
  return request({
    url: '/bpm/proposal/' + marketingProposalId,
    method: 'get'
  })
}

// 新增营销企划书信息
export function addProposal(data) {
  return request({
    url: '/bpm/proposal',
    method: 'post',
    data: data
  })
}

// 修改营销企划书信息
export function updateProposal(data) {
  return request({
    url: '/bpm/proposal',
    method: 'put',
    data: data
  })
}

// 删除营销企划书信息
export function delProposal(marketingProposalId) {
  return request({
    url: '/bpm/proposal/' + marketingProposalId,
    method: 'delete'
  })
}
